1 REM FROM 32 BASIC PROGRAMS FOR THE APPLE COMPUTER
2 REM <CTRL-J><CTRL-J>BY TOM RUGG & PHIL FELDMAN
5 HOME
9 VTAB (10)
10 INVERSE : PRINT "COMPUTER VOCABULARY": NORMAL : PRINT : PRINT " BY KEN BROWN "
20 FOR Z = 1 TO 2000: NEXT
100 REM :VOCABULARY QUIZ
300 GOSUB 1000
400 GOSUB 2000
500 GOSUB 3000
600 GOSUB 4000
700 GOSUB 5000
800 GOSUB 6000
900 IF E = 0 THEN 500
910 GOTO 300
990 REM INTRO. & # OF ?'S
1000 IF E < >0 THEN 1060
1010 TEXT : HOME
1015 VTAB (10)
1020 PRINT "******** VOCABULARY QUIZ *****"
1030 PRINT
1040 PRINT "THIS PROGRAM WILL TEST YOUR KNOWLEDGE"
1050 PRINT "OF SOME USEFUL VOCABULARY WORDS."
1060 PRINT
1110 INPUT "HOW MANY QUESTIONS SHALL WE DO? ";L
1120 IF L >4 THEN 1140
1130 PRINT " THAT'S NOT ENOUGH. LET'S DO 5.":L = 5
1140 IF E < >0 THEN 1200
1150 PRINT
1170 J = 256 + PEEK(79) + PEEK(78)
1180 J = RND( -J)
1200 RETURN
1300 REM READS VOCAB. INTO ARRAYS HOUSEKEEPING
2000 IF E < >0 THEN 2200
2010 C = 5
2015 REM D=ONE MORE THAN THE NUMBER OF DATA STATEMENTS
2020 D = 252
2030 DIM D$(D),E$(D)
2040 DIM P(C)
2050 J = 1
2055 REM READ DATA
2060 READ D$(J)
2070 IF D$(J) = "XXX" THEN 2140
2090 READ E$(J)
2100 J = J +1
2110 IF J < = D THEN 2060
2120 PRINT "TOO MANY DATA STATEMENTS."
2130 PRINT "ONLY FIRST ";D;" ARE USED."
2140 D = J -1
2200 Q = 1:E = 0:Q1 = 0
2300 RETURN
2400 REM SELECTS CHOICES FOR ANSWERS AND DETERMINES WHICH IS CORRECT
3000 FOR J = 1 TO C
3010 P(J) = 0
3020 NEXT
3030 FOR J = 1 TO C
3040 P = INT(D * RND(1)) +1
3045 IF P = P1 OR P = P2 OR P = P3 OR P = 4 OR P = 5 OR P = 6 OR P = 7 OR P = 8 OR P = 9 OR P = 10 THEN 3040
3050 FOR K = 1 TO J
3060 IF P(K) = P THEN 3040
3070 NEXT K
3080 P(J) = P: NEXT J
3110 A = INT(C * RND(1)) +1
3200 RETURN
3300 REM DETERMINES WHICH FORMAT THE ? WILL BE ASKED. ASKS IT.
4000 PRINT
4010 M = RND(1)
4020 IF M >.5 THEN 4100
4030 HOME : PRINT Q;"--WHAT WORD MEANS ";E$(P(A));"?": PRINT
4040 FOR J = 1 TO C
4050 PRINT TAB( 5);J;" --";D$(P(J))
4060 NEXT
4070 GOTO 4210
4100 HOME : PRINT Q;" -- WHAT DOES ";D$(P(A));" MEAN?"
4103 FOR K = 1 TO 38: PRINT "-";: NEXT K: PRINT
4105 FOR TL = 1 TO 3000: NEXT
4110 FOR J = 1 TO C
4120 PRINT TAB( 5);J;" -- ";E$(P(J)): PRINT
4130 NEXT
4210 RETURN
4211 REM *************************
5000 INPUT R
5010 IF R > = 1 AND R < = C THEN 5050
5020 PRINT "I NEED A NUMBER FROM 1 TO ";C
5030 GOTO 5000
5050 IF (R = A) THEN 5100
5060 PRINT "NO, THE ANSWER IS NUMBER ";A
5065 FOR L1 = 1 TO 2600: NEXT L1
5070 GOTO 5210
5100 HOME : VTAB (10): PRINT "YEH! THAT'S IT.": FOR I = 1 TO 3: PRINT CHR$(7): NEXT I
5105 FOR L1 = 1 TO 1000: NEXT L1
5110 Q1 = Q1 +1
5210 IF Q = 1 THEN 5300
5220 PRINT "YOU HAVE ";Q1;" RIGHT OUT OF ";Q;" QUESTIONS."
5225 FOR L1 = 1 TO 2000: NEXT L1
5300 P3 = P2
5310 P2 = P1
5320 P1 = P(A)
5330 RETURN
5400 REM ****************************
6000 Q = Q +1
6010 IF Q < = L THEN RETURN
6020 E = 1
6030 Q = Q1 *100/(Q -1)
6040 IF Q >0 THEN 6070
6050 PRINT "WELL, THAT'S A 'PERFECT' SCORE..."
6060 GOTO 6200
6070 PRINT "THAT'S ";Q;" PERCENT."
6080 IF Q >25 THEN 6110
6090 PRINT "CONGRATULATIONS ON AVOIDING A SHUTOUT."
6100 GOTO 6200
6110 IF Q >50 THEN 6140
6120 PRINT "YOU CAN USE SOME MORE PRACTICE."
6125 PRINT "DON'T YOU WANT TO GIVE BILL BUCKLEY A RUN FOR HIS MONEY?"
6130 GOTO 6200
6140 IF Q >75 THEN 6170
6150 PRINT "NOT BAD,BUT ROOM FOR IMPROVEMENT."
6160 GOTO 6200
6170 PRINT "VERY GOOD!"
6180 IF Q >95 THEN PRINT "YOU'RE ALMOST AS SMART AS I AM!"
6200 PRINT
6210 INPUT "WANT TO TRY AGAIN? ";R$
6220 IF LEFT$(R$,1) < >"N" THEN 6240
6230 HOME : PRINT : PRINT "CHECK YOU LATER.": PRINT : END
6240 IF LEFT$(R$,1) < >"Y" THEN 6200
6250 RETURN
7000 REM :ON LINE 2020, D MUST BE AT LEAST ONE GREATER
7005 REM :THAN THE NUMBER OF DIFFERENT WORDS.
7010 REM DATA STATEMENTS
7020 DATA 6502 ,"THE MANUFACTURER'S NAME FOR THE MICROPROCESSOR AT THE HEART OF YOUR APPLE."
7021 DATA ADDRESS ,"AS A NOUN:THE PARTICULAR NUMBER ASSOCIATED WITH EACH MEMORY LOCATION.ON THE APPLE A NUMBER BETWEEN 0 & 65535 (OR $0000 & $FFFF HEX).AS A VERB TO REFER TO A PARTICULAR MEMORY LOCATION."
7023 DATA ADDRESS BUS ,"THE SET OF WIRES,OR THE SIGNAL,WHICH CARRY THE BINARY-ENCODED ADDRESS FROM THE MICROPROCESSOR TO THE REST OF THE COMPUTER."
7024 DATA ADDRESSING MODE ,"THE 13 WAYS OF REFFERING TO MOST LOCATIONS IN MEMORY."
7025 DATA 'AND',"A BINARY FUNCTION WHICH IS 'ON' IF AND ONLY IF ALL OF ITS INPUTS ARE 'ON'."
7026 DATA BIT ,"THE SMALLEST AMOUNT OF INFORMATION A COMPUTER CAN HOLD.SPECIFIES A SINGLE VALUE 0 OR 1."
7027 DATA ASSEMBLY LANGUAGE ,"SIMILAR TO MACHINE LANG.BUT MADE UP OF MNEMONICS AND SYMBOLS."
7028 DATA BOOT,"TO GET A SYSTEM RUNNING FROM A 'COLD-START'"
7029 DATA BUFFER,"A DEVICE OR AREA OF MEMORY USED TO HOLD SOMETHING TEMPORARILY."
7030 DATA BUS,"A SET OF WIRES OR TRACES IN A COMPUTER WHICH CARRY A RELATED SET OF DATA FROM ONE PLACE TO ANOTHER,OR THE DATA ON SUCH."
7031 DATA BYTE,"CONSISTS OF 8 BITS.CAN HAVE A VALUE OF 0 TO 255.
7032 DATA CALL,"AN INSTRUCTION THAT CALLS A SUBROUTINE."
7033 DATA CODE,"A METHOD OF REPRESENTING SOMETHING IN TERMS OF SOMETHING ELSE.THE ASCII CODE REPRESENTS CHARACTERS AS BINARY NUMBERS."
7034 DATA MEMORY ADDRESS,"A 2-BYTE VALUE WHICH SELECTS A SINGLE MEMORY LOCATION OUT OF THE MEMORY MAP."
7035 DATA OPCODE,"THE SEGMENT OF THE M.L.OR ASSEMBLY LANG. INSTRUCTION SPECIFYING THE OPERATION TO BE PERFORMED.NUMERICAL (OFTEN BINARY) IN NATURE."
7036 DATA STACK,"A RESERVED AREA IN MEMORY TO STORE INFORMATION TEMPORARILY.REFERENCED NOT BY ADDRESS,BUT BY THE ORDER IT WAS PLACED THERE."
7037 DATA ASCII,"THIS STANDARD CODE ASSIGNS A UNIQUE VALUE FROM 0 TO 127 TO EACH OF 128 NUMBERS,LETTERS,SPECIAL CHRACTERS."
7038 DATA BIT,"A CONTRACTION OF BINARY DIGIT.A 0 OR A 1.
7039 DATA BAUD,"THE NUMBER OF BITS TRANSMITTED PER SECOND.ACTUALLY THE BINARY UNITS OF INFORMATION TRANSMITTED P/SEC."
7040 DATA BUS,"PATH FOR SIGNALS HAVING A COMMON FUNCTION."
7041 DATA PORT,"A PHYSICAL I/O CONNECTION FOR 8-BIT MPU.IT USUALLY PROVIDES 8-BITS OF DATA SAT A TIME.
7042 DATA CHANNEL,"LOGICAL CONNECTION FROM A CPU TO AN I/O DEVICE."
7043 DATA DIGITAL,"HAVING DISCRETE STATES.MAY CURRENTLY HAVE FROM 2 TO 16 STATES."
7044 DATA DUMP,"AN OPERATION IN WHICH THE CONTENTS OF ONE MEMORY LEVEL ARE RECORDED TO ANOTHER."
7045 DATA MNEMONIC,"A SYMBOLIC REPRESENTATION,GENERALLY OF A OPCODE."
7046 DATA PARALLEL,"THE PROCESSING,TRANSMISSION,OR STORAGE OF DATA SUCH THAT ALL OF THE ELEMENTS OF A COMPOUND ITEM,SUCH AS THE BITS IN A BYTE, ARE HANDLED SIMULTANEOUSLY."
7047 DATA PEEK,"A BASIC FUNCTION WHICH RETURNS THE CONTENTS OF A PARTICULAR MEMORY LOCATION.TO LOOK AT THE CONTENTS OF MEMORY."
7048 DATA ACCESS TIME,"THE TIME THAT ELAPSES BETWEEN A CALL FOR DATA FROM A STORAGE DEVICE AND THE AVAILABILITY OF THAT DATA."
7049 DATA ACCUMULATOR,"ONE OF SEVERAL REGISTERS WHICH TEMPORARILY STORE,OR 'ACCUMULATE' THE RESULTS OF VARIOUS OPERATIONS."
7050 DATA ARCHITECTURE,"THE STRUCTURE OF A COMPUTER SYSTEM. INVOLVES HARDWARE,THE MANNER AND ORDER IN WHICH PROCESSING IS DONE,THE ARRANGEMENT OF ELEMENTS OF THE COMPUTER,BUS,STORAGE,CONTROL CAPACITIES."
7051 DATA ASSEMBLER,"THE SOFTWARE PROGRAM WHICH CONVERTS MNEMONIC LANGUAGE INTO MACHINE LANGUAGE.
7052 DATA ASYNCHRONOUS,"WHEN THE DATA SIGINALS BETWEEN 2 OR MORE UNITS OF EQUIPMENT ARE NOT TIMED BY THE FREQUENCY OF A COMMON CLOCK."
7053 DATA DECODER,"AN I.C.CHIP WHICH CHANGES BINARY CODED DECIMAL TO THE DECIMAL SYSTEM."
7054 DATA BIT RATE,"THE NUMBER OF BITS TRANSMITTED PER SECOND."
7055 DATA BITS PER INCH (BPI),"A MESUREMENT OF THE NUMBER OF POSITIONS PER LINEAR INCH OF SOME RECORDING MEDIA. IE.DISK,TAPE."
7056 DATA CONTROLLER,"AN ADAPTER WHICH PERMITS THE CONTROL OF AN I/O DEVICE BY THE CPU.
7057 DATA DEDICATION,"THE ASSIGNMENT OF A PROGRAM,AN I/O DEVICE,OR AN ENTIRE SYSTEM TO A SINGLE APPLICATION OR PURPOSE."
7058 DATA DOCUMENTATION,"ALL OF THE WRITTEN MATERIAL THAT IS NECESSARY TO ESTABLISH AND OPERATE A COMPUTER SYSTEM."
7066 DATA BUS DRIVER (LINE DRIVER),"AN ELECTRONIC AMPLIFIER DESIGNED TO PROVIDE POWER TO EITHER CONTROL OR ACTIVATE CIRCUITS THAT ARE CONNECTED TO A GREAT MANY DEVICES."
7067 DATA EXPANSION CARD,"A CARD ON WHICH CHIPS OR CIRCUITS CAN BE MOUNTED.THE CARD IS THEN ADDED TO THE SYSTEM TO EXPAND ITS CAPABILITY."
7068 DATA FIRMWARE,"A PROGRAM THAT HAS BEEN IMPLANTED IN A READ-ONLY MEMORY (ROM) DEVICE."
7069 DATA INTERPRETER,"A COMPILER PROGRAM THAT CONVERTS ONE INSTRUCTION AT A TIMES INTO MACHINE LANGUAGE."
7070 DATA OBJECT PROGRAM,"A PROGRAM THAT HAS BEEN TRANSLATED INTO A FORM READABLE BY THE COMPUTER."
7071 DATA PARALLEL TRANSMISSION,"THE TRANSMISSION OF DATA ALONG SEVERAL PATHWAYS AT THE SAME TIME."
7072 DATA SERIAL TRANSMISSION,"THE TRANSMISSION OF DATA OVER A SINGLE PATHWAY."
7073 DATA OPCODES,"THE INTERPRETED VALUES STORED IN A MEMORY ADDRESS."
7074 DATA OPERAND,"THE NUMBER THAT THE OPCODE IS TO USE IN ITS OPERATION."
7075 DATA ASSEMBLER,"IS USED TO TRANSLATE ABBREVIATED CODEWORDS CALLED MNEMONICS,INTO THE PROPER NUMBER OF VALUES TO BE STORED IN MEMORY."
7076 DATA PAGE OF MEMORY,"A BLOCK OF 256 BYTES (IE. $0 TO $FF)"